package com.u.finance.pay.service;

import com.u.finance.pay.entity.PayRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-31
 */
public interface IPayRecordService extends IService<PayRecord> {

    @Transactional(rollbackFor = Exception.class)
    boolean transferCount(String payoutAccount, BigDecimal amount, Integer payType);

    boolean repay(String payoutAccount, BigDecimal amount, Integer payType);
}
